/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const reportRouter = {
  path: '/report',
  component: Layout,
  redirect: 'noRedirect',
  name: 'reportDemo',
  meta: {
    title: '统计分析',
    icon: 'component'
  },
  children: [{
      path: 'finance',
      component: () => import('@/views/report/finance/index'),
      name: 'systemFinance',
      meta: {
        title: '财务统计'
      }
    },
    {
        path: 'collection',
        component: () => import('@/views/report/collection/index'),
        name: 'reportCollection',
        meta: {
          title: '催收统计'
        }
      },
    {
        path: 'merchant',
        component: () => import('@/views/report/merchant/index'),
        name: 'reportMerchant',
        meta: {
          title: '商户统计'
        }
      },
      {
          path: 'order',
          component: () => import('@/views/report/order/index'),
          name: 'reportOrder',
          meta: {
            title: '订单统计'
          }
        },
      {
          path: 'sale',
          component: () => import('@/views/report/sale/index'),
          name: 'reportSale',
          meta: {
            title: '销售统计'
          }
        }

  ]
}

export default reportRouter
